package com.events
{
    import flash.events.Event;

    /**
     * Event emitted from several controls in the view to indicate
     * a request for some video transport operation.
     */
    public class PlayerControlEvent extends Event
    {
        public static const SEEK:String = "seek";
        public static const PAUSE:String = "pause";
        
        public var offset:int;
        
        public function PlayerControlEvent(type:String, offset:int = 0)
        {
            super(type);
            this.offset = offset;
        }
        
        override public function clone():Event
        {
            return new PlayerControlEvent(type, offset);
        }
    }
}